#ifndef _DISP_DEAL_H
#define _DISP_DEAL_H	
#include "include.h"
#define s_0	0
#define s_a	B7   
#define s_b	B0
#define s_c	B2
#define s_d	B4
#define s_e	B5
#define s_f	B1
#define s_g	B6
#define s_l	B3
// ---------------------------
#define Char0	(s_a+s_b+s_c+s_d+s_e+s_f)
#define Char1	(s_b+s_c)
#define Char2	(s_a+s_b+s_d+s_e+s_g)
#define Char3	(s_a+s_b+s_c+s_d+s_g)
#define Char4	(s_b+s_c+s_f+s_g)
#define Char5	(s_a+s_c+s_d+s_f+s_g)
#define Char6	(s_a+s_c+s_d+s_e+s_f+s_g)
#define Char7	(s_a+s_b+s_c)
#define Char8	(s_a+s_b+s_c+s_d+s_e+s_f+s_g)
#define Char9	(s_a+s_b+s_c+s_d+s_f+s_g)
#define CharA	(s_a+s_b+s_c+s_e+s_f+s_g)
#define Charb	(s_c+s_d+s_e+s_f+s_g)
#define Charc	(s_a+s_f+s_g)
#define CharC   (s_a+s_d+s_e+s_f)
#define Chard	(s_b+s_c+s_d+s_e+s_g)
#define CharE	(s_a+s_d+s_e+s_f+s_g)
#define CharF	(s_a+s_e+s_f+s_g)
#define Char_	(s_g)
#define Charh	(s_c+s_e+s_f+s_g)
#define CharP	(s_a+s_b+s_e+s_f+s_g)
#define Chart (s_d+s_e+s_f+s_g)
//#define CharL	(~(s_d+s_e+s_f))
#define CharH	(s_b+s_c+s_e+s_f+s_g)
#define CharR	(s_a+s_b+s_c+s_d)
#define CharL	(s_d+s_e+s_f)
#define CharM	(s_a+s_d)    
#define CharV	(s_b+s_c+s_d+s_e+s_f)      
#define CharG	(s_a+s_b+s_d+s_e+s_f+s_g)
#define CharJ	(s_b+s_c+s_d) 
#define Chary	(s_b+s_c+s_d+s_f+s_g)
#define Charr	(s_e+s_f+s_g)
#define Charn	(s_c+s_e+s_g)
/////////////////////////////////////////	   disBuf[13]

MC_EXT	uchar   key_data[4];	
MC_EXT	uchar   disBuf[16];
MC_EXT	uchar   Key_data;

MC_EXT	uchar   starDlyT;
MC_EXT	uchar   test_step;
MC_EXT	uchar   dispH;
MC_EXT	uchar   dispL;
MC_EXT	uchar   All_disp_cnt;

MC_EXT	ulong   botAD_10bit,Voltage_Value;
MC_EXT	uchar   botAD_H,botAD_L,botTemp,HERTZ,firmVer,SOFTWARE_DATE_year,SOFTWARE_DATE_month,SOFTWARE_DATE_day;


void  SendDig(void);
void  DispNorm(void);
void  DispLed(void);
void  start(void);
void  end(void);
void  write_tm1640(uchar disp_data);
void  send_tm1640(void);
void  Dis_1(ulong DATA);
void  Dis_2(ulong DATA);
void  Dis_3(ulong DATA);
void  Dis_4(ulong DATA);
	

#endif


